package com.alibaba.sdk.service;

import com.alibaba.sdk.model.OperationResult;
import com.alibaba.sdk.model.input.LoginInput;
import com.alibaba.sdk.model.output.LoginResponse;

/**
 * @ writer Shawn(Shawn_0217@163.com)
 * @ date & time 2021/4/26 23:34
 * @ company alibaba
 */
public interface LoginAndOutService {

    /**
     * 用户登入
     *
     * @param loginInput 用户登入参数类
     * @return
     */
    OperationResult<LoginResponse> login(LoginInput loginInput);

    /**
     * 用户登出
     *
     * @return
     */
    OperationResult logout();
}
